package com.cy.store.service;

import com.cy.store.entity.Order;

/**
 * 订单业务层接口
 */
public interface IOrderService {

    /**
     * 创建订单
     *
     * @return
     */
    public Order create(Integer aid, Integer uid, String username, Integer[] cids);

    /**
     * 显示订单信息
     *
     * @param oid
     * @param uid
     * @return
     */
    public Order findByOid(Integer oid, Integer uid);

    /**
     * 支付后更改订单状态
     * 删除购物车相关商品信息
     *
     * @param oid
     * @param username
     * @param uid
     * @return
     */
    public void updateByOid(Integer oid, String username, Integer uid, Integer[] cids);
}
